<template>
  <div class="header">
    <van-nav-bar title="学习记事本" right-text="点击" @click-right="onClickRight" />
    <van-overlay :show="show">
      <div class="wrapper" @click.stop>
        <ul class="block">
          <li v-for="(item , index) in shuzu" :key="index" :style="red">{{item}}</li>
        </ul>
      </div>
    </van-overlay>
  </div>
</template>

<script>
export default {
  name: "demo",
  props: [],
  components: {},
  data() {
    return {
      show: false,
      shuzu: ["切换主题", "下载数据", "导入数据", "编辑数据", "清空数据"]
    };
  },
  computed: {},
  watch: {},
  methods: {
    onClickRight() {
      this.show = !this.show;
    }
  }
};
</script> 


<style lang='scss' scoped>
.van-overlay {
  width: 30%;
}
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
 
}

.block {
  width: 80%;
  height: 70%;
  li {
    margin-top: 10px;
    background-color: palevioletred;
    width: 80px;
    text-align: center;
    line-height: 40px;
    height: 40px;
    color: #fff;
    border-radius: 5%;
  }
}
.van-nav-bar{
    width: 100%;
    height: 55px;
  text-align: center;
    background-color: palevioletred;
    
}

</style>
